﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.EmployeeModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">ID :</div>
        <div class="display-field"><%= Html.Encode(Model.EmpId) %></div>
        
        <div class="display-label">Name Th :</div>
        <div class="display-field"><%= Html.Encode(Model.NameTh) %></div>
        
        <div class="display-label">Name En :</div>
        <div class="display-field"><%= Html.Encode(Model.NameEng) %></div>
        
        <div class="display-label">Address Th :</div>
        <div class="display-field"><%= Html.Encode(Model.AddressTh) %></div>
        
        <div class="display-label">Address En :</div>
        <div class="display-field"><%= Html.Encode(Model.AddressEng) %></div>
        
        <div class="display-label">Tel :</div>
        <div class="display-field"><%= Html.Encode(Model.Tel) %></div>

         <div class="display-label">Department :</div>
        <div class="display-field"><%= Html.Encode(Model.dept_name_th) %></div>

        <div class="display-label">UserName :</div>
        <div class="display-field"><%= Html.Encode(Model.UserName) %></div>
        
        <div class="display-label">Password :</div>
        <div class="display-field"><%= Html.Encode(Model.Password) %></div>
        
        <div class="display-label">Status :</div>
        <div class="display-field"><%= Html.Encode(Model.Status) %></div>
        
        <div class="display-label">Create By :</div>
        <div class="display-field"><%= Html.Encode(Model.CreateBy) %></div>
        
        <div class="display-label">Create On :</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:g}", Model.CreateOn)) %></div>
        
        <div class="display-label">Update By :</div>
        <div class="display-field"><%= Html.Encode(Model.UpdateBy) %></div>
        
        <div class="display-label">Update On :</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:g}", Model.UpdateOn)) %></div>
        
    </fieldset>
    <p>
        <%= Html.ActionLink("Edit", "Edit", new { id= Model .EmpId /* id=Model.PrimaryKey */ }) %> |
        <%= Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

